<?php
	echo doctype('html5');
	
	// place to view data sent by controller
	//$this->firephp->log($menu, 'menu');
	//$this->firephp->log(base_url('hello'));
?>

<html>

<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $template['title'];?></title>

	<meta name="description" 	content="" />
	<meta name="author" 		content="" />

	<?php 
		
		foreach ($groupLibraries as $lib) {
			$this->carabiner->display($lib,null);
		}	
		
		$this->carabiner->display();
		
	?>
	
	<!-- bootstrap adjustment -->
	<style type="text/css">
		body {
      		padding-top: 60px;
        	padding-bottom: 40px;
      	}
      	.sidebar-nav {
        	padding: 9px 0;
      	}
    </style>
    
	<script>
		window.ajaxUrl = "<?php echo base_url('Admin_data');?>";
	</script>
	
</head>

<body>

	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
			
				<a class="brand" href="#">Admin Panel</a>
				
				<div class="nav-collapse collapse">
					<?php echo $menu; ?>
					<!--  
					<ul class="nav">
						<li class="active"><a href="#">Home</a></li>
						<li><a href="#">Users</a></li>
						<li><a href="#">Groups</a></li>
						<li><a href="#">Profile</a></li>
					</ul>
					-->
				</div>
				
				<?php 
					if ($account) { // logged in (account name)
						
						// show link with account info
						echo $template['partials']['loginInfo'];
					}
					else {			// not logged in ...
						
						// show login drop down form
						echo $template['partials']['loginForm'];
					}
				?>	
				
			</div>
		</div>
	</div>
	
	
	
	
	<div class="container">
		<!--  
		<div class="row-fluid">
			<div class="span9">
				<div class="hero-unit">
					<h1>hello world</h1>
				</div>
			</div>
		</div>
		-->
		<?php  echo $template['body'];?>
	</div>
	
	
	
	
	
	
	<?php // echo $template['body'];?>

</body>


</html>